package com.iye.puretennis.activity.test;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.iye.puretennis.R;
import com.iye.puretennis.activity.LoginActivity;
import com.iye.puretennis.activity.TabsActivity;
import com.iye.puretennis.helper.DBManager;

public class FirstActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    public void seeHelloWord(View view){
        Intent intent = new Intent(this, HelloWordTestActivity.class);
//        Button btn = (Button) view.findViewById(R.id.seeHelloBtn);
//        btn.setText(R.string.newBtn);
//        EditText editText = (EditText) findViewById(R.id.edit_message);
//        String message = editText.getText().toString();
//        intent.putExtra(EXTRA_MESSAGE, message);
        startActivity(intent);
    }

    public void seeMoreLayouts(View view){
        Intent intent = new Intent(this,LayoutControlActivity.class);
        startActivity(intent);
    }

    public void goLoginPage(View view) {
        Intent intent = new Intent(this,LoginActivity.class);
        startActivity(intent);
    }

    public void goTabsPage(View view) {
        Intent intent = new Intent(this,TabsActivity.class);
        startActivity(intent);
    }

    public void goScrollListView(View view) {
        Intent intent = new Intent(this,SlideActivity.class);
        startActivity(intent);
    }

    public void goSlideBar(View view) {
        Intent intent = new Intent(this,SeekBarActivity.class);
        startActivity(intent);
    }

    public void goScrollerView(View view) {
        Intent intent = new Intent(this,MultiScreenActivity.class);
        startActivity(intent);
    }

    public void goViewPager(View view) {
        Intent intent = new Intent(this,FragmentViewpagerActivity.class);
        startActivity(intent);
    }

    public void goDateTimePicker(View view) {
        Intent intent = new Intent(this,TimePeriodActivity.class);
        startActivity(intent);
    }

    public void goCustomerDialog(View view) {
        Intent intent = new Intent(this,CustomerDialogActivity.class);
        startActivity(intent);
    }


}
